package com.hyh.cart.service;

import com.hyh.cart.domain.Cart;
import com.hyh.cart.result.PageResult;

public interface CartService {
    PageResult addCart(Cart cart);

    PageResult addOne(Long id);

    PageResult subOne(Long id);

    PageResult totalPrice(Long id);

    PageResult list(Long userId);

    PageResult delete(Long userId);

    PageResult deleteOne(Long id);

    Cart getCart(Long id);
}
